/**
 * Created by YS on 2017/12/21.
 */
var fs = require('fs')
var aaa = '09.txt'

if (!fs.existsSync(aaa)){
    fs.writeFileSync(aaa,'helle');
    console.log('新文件创建成功')
} else {
    fs.appendFileSync(aaa,'你好')
    console.log('新文件追加成功')
}
